source $VIMRUNTIME/vimrc_example.vim
"source $VIMRUNTIME/mswin.vim
"behave mswin
set autoindent " 设置自动填充行首空格
set dir=E:\\MyData\\FilesOfSunWei\\DataBak\\VimSwapFiles,C:\\temp " 设置交换文件位置
autocmd GUIEnter * simalt ~x " 启动后窗口最大化
autocmd FileType text setlocal textwidth=400 " 设置自动换行长度
" 取消备份文件 begin
set noundofile
set nobackup
set noswapfile
" 取消备份文件 end
set clipboard=unnamed
nnoremap <silent> <F11> :YRShow<CR>
" 可以识别 utf-8 格式的中文
set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
set ambiwidth=double
set expandtab
if has("clipboard")
    " CTRL-X and SHIFT-Del are Cut
    vnoremap <C-X> "+x
    vnoremap <S-Del> "+x

    " CTRL-C and CTRL-Insert are Copy
    vnoremap <S-C> "+y
    vnoremap <C-Insert> "+y

    " CTRL-V and SHIFT-Insert are Paste
    map <C-V>		"+gP
    map <S-Insert>		"+gP

    cmap <C-V>		<C-R>+
    cmap <S-Insert>		<C-R>+
endif